<?php
	mysql_connect("localhost", "root", "%Tg34fv1")or die("cannot connect"); 
	mysql_select_db("wordWaffle")or die("cannot select DB");
	$result=mysql_query('SELECT * FROM players WHERE readyToPlay>0');
	$playerlist = '';
	while ($row = mysql_fetch_array($result))
		$playerlist .= $row['playerName'] . ', ';
	echo "Players: " . trim($playerlist,', ');
?>